package com.app.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_project")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProjectModel {
    private Integer id;
    private String name;//项目名
    // private String dutyPerson;//负责人
    //private String constructUnit;//建设单位
    private String scale;//建设规模
    private String remarks;//进展情况
    private String leader;//包抓领导
    //private Double totalInvest;//总投资
    //private Double planInvest;//计划投资
    private Integer departmentId;//负责单位id
    @TableField(exist = false)
    private String departmentText;
    private Integer type;//类别
    @TableField(exist = false)
    private String typeText;
    private Integer classId;//项目类型
    @TableField(exist = false)
    private String classText;
    private Integer year;
    @TableField(exist = false)
    private String yearName;
    private Integer status;//状态
    @TableField(exist = false)
    private String statusText;
    @TableField(exist = false)
    private Integer departmentType;
    @TableField(exist = false)
    private String remakes;
    @TableField(exist = false)
    private List<StatusModel> statusList;
    private Integer sort;
    @TableField(exist = false)
    private String unitName;
    @TableField(exist = false)
    private Integer redCount;
    @TableField(exist = false)
    private Integer blueCount;
    @TableField(exist = false)
    private Integer yellowCount;
    @TableField(exist = false)
    private Integer thisYearCount;
    @TableField(exist = false)
    private Integer lastYearCount;
    @JsonIgnore
    @TableField(exist = false)
    private Integer limit;
    @JsonIgnore
    @TableField(exist = false)
    private Integer page;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime updateTime;
}
